package cc.rengu.redp.hawk.service;

import cc.rengu.redp.hawk.domain.GraphData;
import cc.rengu.redp.hawk.domain.GraphDataQuery;
import cc.rengu.redp.hawk.domain.HawkMonitorConfigVo;
import com.alibaba.fastjson.JSONObject;

/**
 * @author xushitang
 */
public interface HawkMonitorService {
    void push(String hawkId, String jsonStr);

    void push(String hawkId, JSONObject json);

    Long createPullTask(HawkMonitorConfigVo hawkMonitorConfigVo);

    void updatePullTask(HawkMonitorConfigVo hawkMonitorConfigVo);

    void deletePullTask(Long collectionJobId);

    void switchPullTask(Long collectionJobId, boolean enable);

    GraphData getData(GraphDataQuery graphDataQuery);
}
